package cloud.daodao.storm.common.security.model.rsa;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author DaoDao
 */
@Schema(title = "RsaKeyParam", description = "RSA 密钥")
@Data
public class RsaKeyParam {

    @Schema(title = "keySize", description = "密钥长度", example = "2048")
    @NotNull
    @Min(1024)
    @Max(2048)
    private Integer keySize;

}
